push:
	csingo project::template --tplPath=$$EXAMPLEPATH
	csingo console::template --tplPath=$$EXAMPLECMDPATH
	go get -u all
	go-bindata -pkg version -o resource/version/version.go version/...
	go-bindata -pkg template -o resource/template/template.go template/...
	go-bindata -pkg console -o resource/console/template.go template-console/...
	go build -o $$GOPATH\\bin\\csingo.exe main.go
	git add .
	git commit -m "update"
	git push
	git tag -af `cat version/version` -m ""
	git push --tags
	sleep 10
	csingo version::update

build:
	csingo project::template --tplPath=$$EXAMPLEPATH
	csingo console::template --tplPath=$$EXAMPLECMDPATH
	go-bindata -pkg version -o resource/version/version.go version/...
	go-bindata -pkg template -o resource/template/template.go template/...
	go-bindata -pkg console -o resource/console/template.go template-console/...
	go build -o $$GOPATH\\bin\\csingo.exe main.go

run:
	go-bindata -pkg version -o resource/version/version.go version/...
	go-bindata -pkg template -o resource/template/template.go template/...
	go-bindata -pkg console -o resource/console/template.go template-console/...
	go run main.go

tpl:
	go build -o $$GOPATH\\csingo.exe main.go
	csingo project::template --tplPath=$$EXAMPLEPATH
	csingo console::template --tplPath=$$EXAMPLECMDPATH
	go-bindata -pkg version -o resource/version/version.go version/...
	go-bindata -pkg template -o resource/template/template.go template/...
	go-bindata -pkg console -o resource/console/template.go template-console/...

dev:
	go-bindata -pkg version -o resource/version/version.go version/...
	go-bindata -pkg template -o resource/template/template.go template/...
	go-bindata -pkg console -o resource/console/template.go template-console/...
	go build -o $$GOPATH\\bin\\csingo.exe main.go
	csingo app::create

